package net.sky.oa.service.post.impl;

import java.util.List;
import java.util.Map;

import javax.annotation.Resource;
import net.sky.oa.dao.post.SendPostDao;
import net.sky.oa.model.SendPost;
import net.sky.oa.service.post.SendPostService;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import com.htsoft.core.service.impl.BaseServiceImpl;

@Service
@Transactional
public class SendPostServiceImpl extends BaseServiceImpl<SendPost> implements SendPostService {

	private SendPostDao sendpostdao;
	
	@Resource
	public void setDao(SendPostDao sendpostdao){
		super.setDao(sendpostdao);
		this.sendpostdao=sendpostdao;
	}
	
	@Transactional(readOnly=true)
	public List<SendPost> findAllSendPost() {
		return sendpostdao.findAllSendPost();
	}

	public List<SendPost> findByHql(String paramString) {
		return null;
	}
    
	@Transactional(readOnly=true)
	public Map findSendPostOptions(String title, int type,String postuser,int currentPage,
			int lineSize) throws Exception {
		return sendpostdao.findSendPostOptions(title, type,postuser, currentPage, lineSize);
	}
	@Transactional(readOnly=true)
	public List<SendPost> newPostList() {
		return sendpostdao.newPostList();
	}
	
	@Transactional(readOnly=true)
	public List<SendPost> newReplyList() {
		return sendpostdao.newReplyList();
	}
	
	@Transactional(readOnly=true)
	public List<SendPost> popularityList() {
		return sendpostdao.popularityList();
	}

	
}
